home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 56
/
056.d81
/
personal finance
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
14KB
|
406 lines
10 poke53280,0:poke53281,0:printchr$(14)chr$(8)
20 print"[147][150] [208]ersonal [198]inancial [211]tatement"
30 poke147,0:sys57812"viewdir.o",8,1:sys62631
40 poke147,0:sys57812"ss64.o",8,1:sys62631
50 fori=0to24:poke54272+i,0:next
200 dimm$(9),a$(15),l$(9),as$(15),li$(9):f$="":nm=9:na=14:nl=8
205 sp$=" "
210 fori=1tona:as$(i)="0":next
215 fori=1tonl:li$(i)="0":next
220 fori=1tonm:readm$(i):next
230 data " [204]oad "," [211]ave ","[208]rint "
235 data "[193]ssets","[204]iabil","[212]otals"
236 data " [196]ir "," [201]nfo "," [197]xit "
237 gosub7500
475 print"[147][156][146] [208]ersonal [198]inancial [211]tatement"
480 print"[155]"tab(7)"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
485 fori=1to3:printtab(7)"[221][176][192][192][192][192][192][192][174][176][192][192][192][192][192][192][174][176][192][192][192][192][192][192][174][221]"
486 printtab(7)"[221][221] [221][221] [221][221] [221][221]"
487 printtab(7)"[221][173][192][192][192][192][192][192][189][173][192][192][192][192][192][192][189][173][192][192][192][192][192][192][189][221]":next
490 printtab(7)"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
495 fori=217to242:pokei,peek(i)or128:next
500 print""
501 fori=1to9step3:printtab(9)""m$(i)""m$(i+1)""m$(i+2):print:print:next
505 poke214,16:print:print"[150] [195]ursor keys to highlight. "
506 print" [210][197][212][213][210][206] to select."
507 poke214,21:print:print"[153] [c] 1988 by [194]arbara [200]. [211]chulak"
510 r=7:c=9:xx=1:v$=m$(xx):gosub9050
520 getk$:ifk$=""then520
525 ifk$=chr$(13)then550
527 x1=xx:r1=r:c1=c
530 ifk$=""thenr=r+3:ifr>13thenr=7
535 ifk$="[145]"thenr=r-3:ifr<7thenr=13
536 ifk$=""thenc=c+8:ifc>25thenc=9
537 ifk$="[157]"thenc=c-8:ifc<9thenc=25
538 xx=r-7+int(c/8):x2=xx:r2=r:c2=c
540 ifx1<>xxthenxx=x1:r=r1:c=c1:v$=m$(xx):gosub9000
545 xx=x2:r=r2:c=c2:v$=m$(xx):gosub9050:goto520
550 gosub8200:onxxgosub1000,2000,5000,3000,4000,6000,7000,9500,20000
552 ifxx=9orxx=3 then520
555 goto475
1000 print"[147][150] [204]oad [198]ile"
1001 print"[155][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
1002 print"[155][221][154][198]ilename: [155][221]"
1003 print"[155][173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
1004 print"[154]";
1005 ty=4:l=13:gosub9200:ifct=0thenreturn
1010 open2,8,2,v$+",s,r"
1015 open15,8,15
1020 input#15,e0,e$,e1,e2
1025 print
1026 print"[155][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
1027 print"[155][221][154][196]isk: [155][221]"
1028 print"[155][173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
1029 print"[154]";e$
1030 ife0thenclose15:close2:gosub9400:return
1035 fori=1tonl:input#2,li$(i):next
1040 fori=1tona:input#2,as$(i):next
1045 close15:close2:return
1050 :
2000 print"[147][150] [211]ave [198]ile"
2001 print"[155][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
2002 print"[155][221][154][198]ilename: [155][221]"
2003 print"[155][173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
2004 print"[154]";
2005 ty=4:l=13:gosub9200:ifct=0thenreturn
2010 open2,8,2,v$+",s,w"
2015 open15,8,15
2020 input#15,e0,e$,e1,e2
2025 print
2026 print"[155][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
2027 print"[155][221][154][196]isk: [155][221]"
2028 print"[155][173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
2029 print"[154]";e$
2030 ife0thenclose15:close2:gosub9400:return
2035 fori=1tonl:print#2,li$(i):next
2040 fori=1tona:print#2,as$(i):next
2045 close15:close2:return
2050 :
3000 print"[147][150] [193]ssets"
3005 print"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][178][192][192][192][192][192][192][192][192][192][174]"
3010 fori=1tona:print"[221] [221] [221]":next
3015 print"[171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][219][192][192][192][192][192][192][192][192][192][179]"
3016 print"[221] [212]otals [221] [221]"
3017 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][177][192][192][192][192][192][192][192][192][192][189]"
3020 fori=217to242:pokei,peek(i)or128:next
3021 r=4:c=1:x=1:v$=a$(x)
3025 print"[154]";
3030 fori=1tona:print""a$(i):next
3035 print"[153]";
3040 fori=1tona:printtab(29)""right$(sp$+as$(i),9):next
3045 gosub8000
3050 print:printtab(29)"[150]"right$(sp$+str$(ta),9)
3055 poke214,21:print:print"[153] _=[205]ain [205]enu [200]=[200]elp "
3060 v$=a$(x):gosub9000
3065 getk$:ifk$=""then3065
3069 ifk$=chr$(3)thengosub7700:goto3055
3070 ifk$="_"thenreturn
3071 ifk$="+"thenfl=1:goto3115
3072 ifk$="-"thenfl=2:goto3115
3073 ifk$="="thenfl=3:goto3115
3074 ifk$="h"thensys49152:print"";:gosub8500:goto3065
3075 x1=x
3080 ifk$=""thenx=x+1:ifx>nathenx=1
3090 ifk$="[145]"thenx=x-1:ifx<1thenx=na
3095 x2=x
3100 ifx1<>xthenx=x1:v$=a$(x):gosub9050
3105 x=x2:r=x+3:v$=a$(x):gosub9000:goto3065
3115 gosub8100
3119 v=val(v$):y=val(as$(x))
3120 iffl=3thenas$(x)=str$(v):goto3025
3121 iffl=1thenas$(x)=str$(v+y):goto3025
3125 as$(x)=str$(y-v):goto3025
3130 :
4000 print"[147][150] [204]iabilities"
4005 print"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][178][192][192][192][192][192][192][192][192][192][174]"
4010 fori=1tonl:print"[221] [221] [221]":next
4015 print"[171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][219][192][192][192][192][192][192][192][192][192][179]"
4016 print"[221] [212]otals [221] [221]"
4017 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][177][192][192][192][192][192][192][192][192][192][189]"
4020 fori=217to242:pokei,peek(i)or128:next
4021 r=5:c=1:x=1:v$=l$(x)
4025 print"[154]";
4030 fori=1tonl:print""l$(i):next
4035 print"[153]";
4040 fori=1tonl:printtab(29)""right$(sp$+li$(i),9):next
4045 gosub8000
4050 print:printtab(29)"[150]"right$(sp$+str$(tl),9)
4055 poke214,21:print:print"[153] _=[205]ain [205]enu [200]=[200]elp "
4060 v$=l$(x):gosub9000
4065 getk$:ifk$=""then4065
4069 ifk$=chr$(3)thengosub7800:goto4055
4070 ifk$="_"thenreturn
4071 ifk$="+"thenfl=1:goto4110
4072 ifk$="-"thenfl=2:goto4110
4073 ifk$="="thenfl=3:goto4110
4074 ifk$="h"thensys49152:print"";:gosub8500:goto4065
4075 x1=x
4080 ifk$=""thenx=x+1:ifx>nlthenx=1
4090 ifk$="[145]"thenx=x-1:ifx<1thenx=nl
4095 x2=x
4100 ifx1<>xthenx=x1:v$=l$(x):gosub9050
4105 x=x2:r=x+4:v$=l$(x):gosub9000:goto4065
4110 g